package com.baizhi.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    private static final Logger log = LoggerFactory.getLogger(DemoController.class);

    @Value("${server.port}")
    private int port;

    @GetMapping("/hello")
    public String hello() {
        log.info("hello ok !!!");
        return "Hello World : " + port;
    }
}
